// 将CSS文件内容作为字符串内联到JS中
export const inlineStyles = `/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
}

/* 悬浮按钮 */
.floating-button {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #8c8c8c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08),
                0 9px 28px 0 rgba(0, 0, 0, 0.05),
                0 12px 48px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1000;
}

.floating-button:hover {
    transform: scale(1.1);
    background-color: #595959;
}

.floating-button.hidden {
    display: none;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.08),
                0 9px 28px 0 rgba(0, 0, 0, 0.05),
                0 12px 48px 16px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 添加关闭动画 */
.modal.closing {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0);
}

.modal.closing .modal-content {
    transform: translate(-50%, -48%) scale(0.95);
    opacity: 0;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 8px;
}

.modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
    line-height: 22px;
}

.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 208px;
    border-right: 1px solid #f0f0f0;
    background-color: #fff;
    position: relative;
}

.sidebar ul {
    list-style: none;
    position: relative;
}

.sidebar li {
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    line-height: 22px;
    position: relative;
    z-index: 1;
}

.sidebar li:hover {
    color: #1890ff;
}

.sidebar li.active {
    color: #1890ff;
    font-weight: 500;
}

/* 添加动态光标 */
.sidebar ul::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 46px;
    background-color: #1890ff;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateY(0);
    opacity: 0;
}

.sidebar li:nth-child(1).active ~ ul::after {
    transform: translateY(0);
    opacity: 1;
}

.sidebar li:nth-child(2).active ~ ul::after {
    transform: translateY(46px);
    opacity: 1;
}

.sidebar li:nth-child(3).active ~ ul::after {
    transform: translateY(92px);
    opacity: 1;
}

/* 添加背景动画 */
.sidebar li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e6f7ff;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: -1;
}

.sidebar li:hover::before {
    opacity: 0.5;
}

.sidebar li.active::before {
    opacity: 1;
}

/* 内容区域 */
.content {
    flex: 1;
    padding: 24px;
    padding-right: 8px;
    overflow-y: scroll;
    background-color: #fff;
}

/* 滚动条样式优化 */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.panel {
    display: none;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 按钮样式 */
button {
    height: 32px;
    padding: 4px 15px;
    border-radius: 2px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    font-size: 14px;
    line-height: 1.5715;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    touch-action: manipulation;
}

button:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

button:active {
    color: #096dd9;
    border-color: #096dd9;
}

.add-config-btn, .add-header-btn, .add-proxy-btn, .add-param-btn {
    color: #1890ff;
    border-color: #1890ff;
    background-color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-config-btn:hover, .add-header-btn:hover, .add-proxy-btn:hover, .add-param-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
    background-color: #e6f7ff;
}

/* 关闭按钮样式优化 */
.close-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.45);
    transition: background-color 0.3s;
}

.close-btn::before {
    transform: rotate(45deg);
}

.close-btn::after {
    transform: rotate(-45deg);
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.close-btn:hover::before,
.close-btn:hover::after {
    background-color: rgba(0, 0, 0, 0.85);
}

.delete-btn {
    color: #ff4d4f;
    border-color: #ff4d4f;
}

.delete-btn:hover {
    color: #ff7875;
    border-color: #ff7875;
    background-color: #fff1f0;
}

.edit-btn {
    margin-right: 8px;
}

.config-item {
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    margin-bottom: 16px;
    transition: all 0.3s;
    background-color: #fff;
}

.config-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.config-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.config-urls {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 16px;
}

.config-urls input {
    width: 100%;
}

.arrow {
    margin: 0 8px;
    color: #bfbfbf;
    font-weight: bold;
}

.config-detail {
    padding: 16px;
    display: none;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.config-detail.expanded {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.85);
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    vertical-align: middle;
    line-height: normal;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
    transition: all 0.2s;
    border-radius: 100px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: all 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
}

.slider:after {
    content: "×";
    position: absolute;
    right: 9px;
    top: 2px;
    color: #fff;
    font-size: 12px;
    opacity: 1;
    transition: opacity 0.2s;
}

input:checked + .slider {
    background-color: #1890ff;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:checked + .slider:after {
    content: "✓";
    right: auto;
    left: 9px;
}

input:disabled + .slider {
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.1);
}

input:disabled + .slider:before {
    background-color: #f5f5f5;
    box-shadow: none;
}

/* 输入框和文本域样式 */
input[type="text"], textarea {
    padding: 4px 11px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.5715;
    color: rgba(0, 0, 0, 0.85);
    background-color: #fff;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
    width: 100%;
    min-height: 32px;
}

input[type="text"]:hover, textarea:hover {
    border-color: #40a9ff;
}

input[type="text"]:focus, textarea:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: 0;
}

textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.param-item, .header-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.param-name, .param-value, .header-name, .header-value {
    flex: 1;
}

/* 代理设置页样式优化 */
.proxy-section {
    padding: 0;
    margin-bottom: 16px;
}

.proxy-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    color: rgba(0, 0, 0, 0.85);
}

.proxy-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    background-color: #fff;
    transition: all 0.3s;
    animation: fadeInUp 0.3s ease;
}

.proxy-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.proxy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.proxy-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proxy-type {
    display: flex;
    gap: 24px;
    margin: 8px 0;
}

.proxy-url-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proxy-url {
    flex: 1;
}

.proxy-url:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.25);
}

/* 添加代理项动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 调整单选框组样式 */
.radio-group {
    display: flex;
    gap: 24px;
    margin: 8px 0;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5715;
    user-select: none;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.radio-text {
    position: relative;
    padding-left: 22px;
    color: rgba(0, 0, 0, 0.85);
    transition: all 0.3s;
}

.radio-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s;
}

.radio-text::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1890ff;
    transition: all 0.3s;
    opacity: 0;
}

.radio-label:hover .radio-text::before {
    border-color: #1890ff;
}

.radio-label input[type="radio"]:checked + .radio-text::before {
    border-color: #1890ff;
}

.radio-label input[type="radio"]:checked + .radio-text::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

/* 调整面板内容布局 */
.panel {
    display: none;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 导入导出按钮 */
.import-btn, .export-btn {
    color: #1890ff;
    border-color: #1890ff;
}

.import-btn:hover, .export-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
    background-color: #e6f7ff;
}

/* 编辑状态样式 */
.config-item.editing {
    border: 2px solid #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.config-item.editing .config-header {
    background-color: #e6f7ff;
}

.config-item.editing input:not([type="checkbox"]),
.config-item.editing textarea {
    background-color: #fff;
    border: 1px solid #d9d9d9;
    cursor: text;
}

.config-item.editing input:not([type="checkbox"]):hover,
.config-item.editing textarea:hover {
    border-color: #40a9ff;
}

.config-item.editing input:not([type="checkbox"]):focus,
.config-item.editing textarea:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
    outline: none;
}

.save-btn {
    color: #fff;
    background-color: #1890ff;
    border-color: #1890ff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
    margin-right: 8px;
}

.save-btn:hover {
    color: #fff;
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.cancel-btn {
    color: rgba(0, 0, 0, 0.85);
    border-color: #d9d9d9;
    background: #fff;
}

.cancel-btn:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

/* 展开/收起动画 */
.config-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.config-detail.expanded {
    max-height: 1000px; /* 根据实际内容调整 */
}
`; 